import request from '@/utils/request'

// 获取商品
export function getGoods(data) {
    return request({
        url: '/getGoods',
        method: 'post',
        data
    })
}

// 获取商品
export function updateStatus(data) {
    return request({
        url: '/updateStatus',
        method: 'post',
        data
    })
}

// 获取商品详情
export function getGoodsDetail(data) {
    return request({
        url: '/getGoodsDetail',
        method: 'post',
        data
    })
}

// 加入购物车
export function addGoodsToCar(data) {
    return request({
        url: '/addGoodsToCar',
        method: 'post',
        data
    })
}

// 获取购物车数量
export function getGoodsCarNum(data) {
    return request({
        url: '/getGoodsCarNum',
        method: 'post',
        data
    })
}

// 获取购物车详情
export function getGoodsCarDetail(data) {
    return request({
        url: '/getGoodsCarDetail',
        method: 'post',
        data
    })
}

// 更新购物车
export function updateShopCar(data) {
    return request({
        url: '/updateShopCar',
        method: 'post',
        data
    })
}

// 购物车--单个删除
export function deleteShopCar(data) {
    return request({
        url: '/deleteShopCar',
        method: 'post',
        data
    })
}

// 购物车--批量删除
export function deleteShopCarMany(data) {
    return request({
        url: '/deleteShopCarMany',
        method: 'post',
        data
    })
}

export function printPdf(data) {
    return request({
        url: '/printPdf',
        method: 'post',
        data
    })
}

